package com.cn.springcloudwechat.model.find.communication;

import com.cn.springcloudwechat.model.attachment.YmAttachment;

import java.util.Date;
import java.util.List;

public class YmAnswerVO {
    /**
     * 回复流水id
     */
    private Long answerId;

    /**
     * 回复用户id
     */
    private Long answerUserId;

    /**
     * 阅读状态(0未读1已读)
     */
    private Short readState;

    /**
     * 回复某个用户id(answer_id)
     */
    private Long parentId;

    /**
     * 创建时间(评论时间)
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 状态 0无效 1有效
     */
    private Short state;

    /**
     * 回复内容
     */
    private String answerDes;

    /**
     * 1医生id2交流圈id(贴子)3文章id
     */
    private Long typeId;

    /**
     * 1医生2交流圈3文章
     */
    private Integer type;

    /**
     * 跳转的url
     */
    private String url;

    private String createTimeString;

    /**
     * 用来存id查到的昵称
     */
    private String userName;

    /**
     * 地址
     */
    private String address;

    /**
     * 用户头像
     */
    private String headimgurl;


    private String parentName;

    // 点赞数
    private Integer praiseCountNumber;

    // 点赞状态
    private Integer praiseState;

    // 回复数
    private Integer answersCount;

    // 用户昵称
    private String nickName;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    // 附件
    private List<YmAttachment> ymAttachments;

    public List<YmAttachment> getYmAttachments() {
        return ymAttachments;
    }

    private Long parentAnswerId;

    public Long getParentAnswerId() {
        return parentAnswerId;
    }

    public void setParentAnswerId(Long parentAnswerId) {
        this.parentAnswerId = parentAnswerId;
    }

    public void setYmAttachments(List<YmAttachment> ymAttachments) {
        this.ymAttachments = ymAttachments;
    }

    public Integer getPraiseState() {
        return praiseState;
    }

    public void setPraiseState(Integer praiseState) {
        this.praiseState = praiseState;
    }

    public Integer getPraiseCountNumber() {
        return praiseCountNumber;
    }

    public void setPraiseCountNumber(Integer praiseCountNumber) {
        this.praiseCountNumber = praiseCountNumber;
    }

    public Integer getAnswersCount() {
        return answersCount;
    }

    public void setAnswersCount(Integer answersCount) {
        this.answersCount = answersCount;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getCreateTimeString() {
        return createTimeString;
    }

    public void setCreateTimeString(String createTimeString) {
        this.createTimeString = createTimeString;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public Long getAnswerId() {
        return answerId;
    }

    public void setAnswerId(Long answerId) {
        this.answerId = answerId;
    }

    public Long getAnswerUserId() {
        return answerUserId;
    }

    public void setAnswerUserId(Long answerUserId) {
        this.answerUserId = answerUserId;
    }

    public Short getReadState() {
        return readState;
    }

    public void setReadState(Short readState) {
        this.readState = readState;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public String getAnswerDes() {
        return answerDes;
    }

    public void setAnswerDes(String answerDes) {
        this.answerDes = answerDes == null ? null : answerDes.trim();
    }
}